﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System.Collections.Generic;

namespace com.guojin.mj.net.message.login
{
    public class Dairilist : Message
    {
        public static int TYPE = 7;
        public static int ID = 159;
        public List<DairiItem> dairuLtem= new List<login.DairiItem>();
        public void decode(core.io.Input _in)
        {
            int size = _in.readInt();
            if (size>0)
            {
                for (int i = 0; i < size; i++)
                {
                    DairiItem dr = new login.DairiItem();
                    dr.decode(_in);
                    dairuLtem.Add(dr);
                }
            }
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
